<?php
echo "计算用户输入两个整数的加减乘除的结果\n";
echo "请输入两个整数，用逗号分隔开\n";
$count=fscanf(STDIN, "%d ,%d %s",   $a,$b,$other);
var_dump($count,$a,$b,$other);
if ($count>2) {
echo '有乱东西 \n';
}else if ($count<2){
    echo "按要求输入~\n";
}else  {
    $jia=$a+$b;
    $jian=$a-$b;
    $cheng=$a*$b;
    $chu=$a/$b;
    echo "$jia=$a+$b \n";
    echo "$jian=$a-$b \n" ;
    echo "$cheng=$a*$b \n" ;
    echo "$chu=$a/$b \n";
}







